package com.lai.hospital.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author : lai
 * @version V1.0
 * @Project: hospital-springboot
 * @Package com.lai.hospital.vo
 * @Description: "用户手机登录
 * @date Date : 2023年02月11日 17:04
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "用户手机登录")
public class UserPhoneLoginVO {

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(name = "phone", value = "手机号", required = true, dataType = "String")
    private String phone;


    /**
     * 验证码
     */
    @Size(min = 6,max = 6,message = "验证码不能少于或大于6位")
    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(name = "code", value = "手机验证码", required = true, dataType = "String")
    private String code;
}
